Release 10.1A: OpenEdge Development:
Progress Dynamics Getting Started


Linking the Order Lines page

As on the Customer Orders Browse, you must add links to hook the OrderLine SDO with the Order SDO and the Order viewer. The template you used for this page already has the rest of the links to pass data from the OrderLine SDO to its browse and viewer.

To add the links:

  1. Choose the Links Maintenance button. The Links Maintenance dialog box appears.
  2. Verify that all of the links in the following table exist, and add any links that are missing:
  3. Source
    Type
    Target
    afspfoldrww
    Page
    THIS-OBJECT
    OrderlineSDO
    Data
    OrderlineBrowse
    OrderlineSDO
    Data
    OrderlineViewer
    OrderlineViewer
    Update
    OrderlineSDO
    OrderViewer
    Update
    THIS-OBJECT
    StandardToolbar
    ContainerToolbar
    THIS-OBJECT
    StandardToolbar
    Navigation
    THIS-OBJECT
    StandardToolbar
    TableIO
    OrderViewer
    StandardToolbar(1)
    TableIO
    OrderlineViewer
    StandardToolbar(1)
    ContainerToolbar
    THIS-OBJECT
    StandardToolbar(1)
    Navigation
    OrderlineSDO
    THIS-OBJECT
    Data
    OrderlineSDO
    THIS-OBJECT
    Data
    OrderViewer

  4. Exit the Links Maintenance window.
  5. Choose Save, then exit the Container Builder window.

To test your new application, launch oeOrderBrowseWin from the Dynamic Launcher. This is the second browse window that you created earlier. You can then launch your new window, oeOrderFoldWin, by editing one of the displayed records. Remember that oeOrderFoldWin is a dependent window and needs the order_obj key from oeOrderBrowseWin as input. Your new browse should look something like this:

Because the template for the Order Lines page of the Order and Lines Browse is designed to have its own update and navigation toolbar, the UI of the window might be confusing: there is one toolbar at the top of the window to navigate and maintain the Order displayed on Page 1, and another toolbar on Page 2 to maintain and navigate OrderLines. A different set of templates could use a single toolbar on Page 0 to handle the currently selected page. You can leave the construction of this variant for an exercise, after you have read the chapter on using the Container Builder in OpenEdge Development: Progress Dynamics Basic Development .

Note: You could have created a window where Customers and Orders were created and updated together, rather than one window that updates Customers and just displays Orders and OrderLines, and a separate window to maintain Orders. The sample application puts things together in a way that shows as much of the framework as possible while building a few objects.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095